//
// Created by 86176 on 2021/11/5.
//

#ifndef CHENYUENEW_DEFAULTFILTERCHAIN_H
#define CHENYUENEW_DEFAULTFILTERCHAIN_H

#include "HeadFilterChain.h"
#include "TailFilterChain.h"
#include "FilterChain.h"

class DefaultFilterChain {
private:
    FilterChain *head = nullptr;
    FilterChain *tail = nullptr;

public:
    DefaultFilterChain();
    void RecvMessage(Session * session);
    void addChainLast(FilterChain *chain);
    void setIOhander(IoHandler *ioHandler);
    IoHandler *getIOhander();

};


#endif //CHENYUENEW_DEFAULTFILTERCHAIN_H
